﻿<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserCreate.aspx.cs" Inherits="AIS.SharePoint.AspNetFBA.Layouts.AIS.SharePoint.AspNetFBA.UserCreate" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<script type="text/javascript">
    function SaveClicked() {
        var nid = SP.UI.Notify.addNotification('<img src="/_layouts/images/loadingcirclests16.gif" style="vertical-align: top;"/> Creating user...', true);
        __doPostBack('__Page', '{\"id\":\"Save\"}');
    }
</script>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table width="750" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
    
        <wssuc:InputFormSection ID = "sectionUserAccount" runat="server">
            <Template_Title>
               <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_UserAccount_Title%>" />
            </Template_Title>
            <Template_InputFormControls>
                <asp:Label runat="server" ForeColor="Red" Text="" ID="lblErrorMessage" />
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtFulleName_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" MaxLength="100" Columns="40" ID="txtFullName" />
                        <SharePoint:InputFormRequiredFieldValidator runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtFullName" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtFulleName_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtUserName_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" MaxLength="100" Columns="40" ID="txtUserName" />
                        <SharePoint:InputFormRequiredFieldValidator runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtUserName" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtUserName_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtUserEMail_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" MaxLength="100" Columns="40" ID="txtUserEMail" />
                        <SharePoint:InputFormRequiredFieldValidator runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtUserEMail" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtUserEMail_ErrorMessage%>" />
                        <SharePoint:InputFormRegularExpressionValidator runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtUserEMail" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtUserEMail_ErrorMessageInvalid%>" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtUserPassword_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" MaxLength="20" Columns="40" ID="txtUserPassword" />
                        <SharePoint:InputFormTextBox runat="server" MaxLength="20" Columns="40" ID="txtUserPasswordConfirm" />
                        <SharePoint:InputFormRequiredFieldValidator runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtUserPassword" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtUserPassword_ErrorMessage%>" />
                        <SharePoint:InputFormCompareValidator runat="server" Display="Dynamic" SetFocusOnError="false" ControlToValidate="txtUserPassword" ControlToCompare="txtUserPasswordConfirm" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtUserPassword_ErrorMessageInvalid%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtSiteURL_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" MaxLength="255" Columns = "40" ID="txtSiteURL" />
                        <SharePoint:InputFormRequiredFieldValidator runat="server" Display="Dynamic" SetFocusOnError="false" ControlToValidate="txtSiteURL"  ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtSiteURL_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection ID = "sectionSecurityQuestion" runat="server">
            <Template_Title>
                <asp:Literal ID="Literal2" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_SecurityQuestion_Title%>" />
            </Template_Title>
            <Template_Description>
                <asp:Literal ID="Literal3" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_SecurityQuestion_Description%>" />
            </Template_Description>
            <Template_InputFormControls>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtSecurityQuestion_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" MaxLength="100" Columns="40" ID="txtSecurityQuestion" />
                        <SharePoint:InputFormRequiredFieldValidator  runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtSecurityQuestion" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtSecurityQuestion_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtSecurityAnswer_Text%>">
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" MaxLength="100" Columns="40" ID="txtSecurityAnswer" />
                        <SharePoint:InputFormRequiredFieldValidator runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtSecurityAnswer" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtSecurityAnswer_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection collapsible="true" runat="server" ID="sectionRoles">
            <Template_Title>
                <asp:Literal ID="Literal4" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_Roles_Title%>" />
            </Template_Title>
            <Template_InputFormControls>
                <wssuc:InputFormControl ID="InputFormControl1" runat="server" LabelText="Roles">
                    <Template_Control>
                        <SharePoint:InputFormCheckBoxList runat="server" CssClass="ms-RadioText" ID="chkRoleList" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection Collapsible="true" runat="server" ID="sectionGroups">
            <Template_Title>
                <asp:Literal ID="Literal5" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_Groups_Title%>" />
            </Template_Title>
            <Template_InputFormControls>
                <wssuc:InputFormControl ID="InputFormControl2" runat="server" LabelText="Groups">
                    <Template_Control>
                        <SharePoint:InputFormCheckBoxList runat="server" CssClass="ms-RadioText" ID="chkGroupList" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection ID = "sectionAutoWelcome" runat="server">
            <Template_Title>
                <asp:Literal ID="Literal6" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_AutoWelcome_Title%>" />
            </Template_Title>
            <Template_Description>
                <asp:Literal ID="Literal7" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_AutoWelcome_Description%>" />
            </Template_Description>
            <Template_InputFormControls>
                <wssuc:InputFormControl runat="server">
                    <Template_Control>
                        <SharePoint:InputFormCheckBox runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_chkDoNotSendAutoWelcome_Text%>" Width = "300" AutoPostBack="true" ID="chkDoNotSendAutoWelcome"/>
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection ID = "sectionWelcomeEMail" runat="server">
            <Template_Title>
                <asp:Literal ID="Literal8" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_WelcomeEMail_Title%>" />
            </Template_Title>
            <Template_InputFormControls>
                <wssuc:InputFormControl runat="server">
                    <Template_Control>
                        <div>
                            <SharePoint:InputFormCheckBox runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_chkSendWElcomeEMail_Text%>" Width = "300" AutoPostBack="true" ID="chkSendWelcomeEMail"/>
                        </div>
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection ID = "sectionWelcomeEMailDetails" runat="server">
            <Template_Title>
                <asp:Literal ID="Literal9" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_Section_WelcomeEMailDetails_Title%>" />
            </Template_Title>
            <Template_InputFormControls>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtWelcomeEMailSubject_Text%>" >
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" Columns="40" ID="txtWelcomeEMailSubject" />
                        <SharePoint:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator1" runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtWelcomeEMailSubject" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtWelcomeEMailSubject_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl runat="server" LabelText="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtWelcomeEMailBody_Text%>" >
                    <Template_Control>
                        <SharePoint:InputFormTextBox runat="server" Columns="40" Rows="10" TextMode="MultiLine" ID="txtWelcomeEmailBody" />
                        <SharePoint:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator2" runat="server" Display="Dynamic" SetFocusOnError="true" ControlToValidate="txtWelcomeEmailBody" ErrorMessage="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_txtWelcomeEMailBody_ErrorMessage%>" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </Template_InputFormControls>
        </wssuc:InputFormSection>

        <wssuc:ButtonSection runat="server" ID="sectionBottomButtons">
            <Template_Buttons>
                <asp:Button ID="Button1" UseSubmitBehavior="false" 
		            runat="server" 
                    OnClick="btnOK_Click"
                    CssClass="ms-ButtonHeightWidth"
		            Text="<%$Resources:wss,multipages_savebutton_text%>" 
		            accesskey="<%$Resources:wss,multipages_savebutton_accesskey%>"/>
            </Template_Buttons>
        </wssuc:ButtonSection>

    </table>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
<asp:Literal ID="Literal10" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_PageTitle%>" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
<asp:Literal ID="Literal11" runat="server" Text="<%$Resources:AIS.SharePoint.AspNetFBA,Page_UserCreate_TitleTitle%>" />
</asp:Content>
